package com.woniu.service.impl;

import com.woniu.pojo.Video;
import com.woniu.mapper.VideoMapper;
import com.woniu.service.IVideoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 课程视频 服务实现类
 * </p>
 *
 * @author xiaoruan
 * @since 2023-03-15
 */
@Service
public class VideoServiceImpl extends ServiceImpl<VideoMapper, Video> implements IVideoService {
    @Resource
    VideoMapper videoMapper;

    @Override
    public List<Video> getVideosByCourseId(String courseId) {
        return videoMapper.getVideosByCourseId(courseId);
    }
}
